<?php
/* @var $this DefaultController */
/* @var $model Taikhoan */

$this->breadcrumbs=array(
	'Taikhoans'=>array('index'),
	$model->id=>array('view','id'=>$model->id),
	'Update',
);
?>
<link href="<?php echo Yii::app()->theme->baseUrl; ?>/css/form.css" rel="stylesheet" type="text/css" />

<div class="row">
	<div class="col-md-12">
		<div class="box box-primary">
            <div class="box-header">
                <h3 class="box-title">Thay đổi mật khẩu</h3>
            </div><!-- /.box-header -->
			<?php $form=$this->beginWidget('CActiveForm', array(
				'id'=>'taikhoan-form',
				'clientOptions'=>array(
		                'inputContainer'=>'div.form-group',
		        ),
				'enableAjaxValidation'=>false,
			)); ?>
				<div class="box-body">
					<div class="form-group">
						<?php echo $form->labelEx($model,'currentPassword'); ?>
						<?php echo $form->passwordField($model,'currentPassword',array('size'=>30,'maxlength'=>30,'class'=>'form-control','placeholder'=>'Mật khẩu hiện tại')); ?>
						<?php echo $form->error($model,'currentPassword'); ?>
					</div>

					<div class="form-group">
						<?php echo $form->labelEx($model,'newPassword'); ?>
						<?php echo $form->passwordField($model,'newPassword',array('size'=>20,'maxlength'=>20,'class'=>'form-control','placeholder'=>'Mật khẩu mới')); ?>
						<?php echo $form->error($model,'newPassword'); ?>
					</div>

					<div class="form-group">
						<?php echo $form->labelEx($model,'confirmNewPassword'); ?>
						<?php echo $form->passwordField($model,'confirmNewPassword',array('size'=>60,'maxlength'=>100,'class'=>'form-control','placeholder'=>'Nhắc lại mật khẩu mới')); ?>
						<?php echo $form->error($model,'confirmNewPassword'); ?>
					</div>

					<div class="form-group buttons">
						<?php echo CHtml::submitButton($model->isNewRecord ? 'Tạo' : 'Lưu'); ?>
					</div>
				</div>
			<?php $this->endWidget(); ?>
		</div>
	</div>
</div><!-- form -->